package com.acce.system.dao;

import java.util.List;

import com.acce.system.pojo.UserPassword;


public interface IUserPasswordDao {
	
	/**
	 * 根据ID查密码
	 * @param userPassword
	 * @return
	 */
	UserPassword getUserPasswordById(UserPassword userPassword);
	/**
	 * 根据属性查询密码
	 * @param userPassword
	 * @return
	 */
	List<UserPassword> getUserPasswordByCondition(UserPassword userPassword);
	/**
	 * 添加密码
	 * @param userPassword
	 * @return
	 */
	int insertUserPassword(UserPassword userPassword);
	/**
	 * 添加密码
	 * @param userPassword
	 * @return
	 */
	int insertBatchUserPassword(List<UserPassword> passwords);
	/**
	 * 根据手机号修改密码
	 * @param userPassword 
	 * @return
	 */
	int updateUserPasswordByAtUserId(UserPassword userPassword);
	/**
	 * 修改密码
	 * @param userPassword 
	 * @return
	 */
	int updateUserPassword(UserPassword userPassword);
	/**
	 * 批量修改密码
	 * @param passwords
	 * @return
	 */
	int updateBatchUserPassword(List<UserPassword> passwords);

}
